<?php $this->renderPartial('_tabs'); ?>
<div class="grid_16">
	<?php echo CHtml::beginForm(); ?>
	<div class="table-block">
		<table class="form-table">
			<tr>
				<td>
					<div>
						<?php echo CHtml::checkBox('AgencySetting[EnableProformaInvoice]', $agency->getSetting('EnableProformaInvoice'), array('uncheckValue' => 0)); ?>
						<?php echo CHtml::label('Enable Proforma Invoice', 'AgencySetting_EnableProformaInvoice'); ?>
					</div>
				</td>
			</tr>
			<tr>
				<td>
					<div class="form-column">
						<?php echo CHtml::label('Default Invoice Type', 'AgencySetting_defaultInvoiceType'); ?>
						<?php echo CHtml::dropDownList('AgencySetting[defaultInvoiceType]', $agency->getSetting('defaultInvoiceType'), array('Invoice' => 'Invoice', 'Proforma Invoice' => 'Proforma Invoice')); ?>
					</div>
				</td>
			</tr>
			<tr>
				<td>
					<div>
						<?php echo CHtml::checkBox('AgencySetting[EnableTemporaryReceipt]', $agency->getSetting('EnableTemporaryReceipt'), array('uncheckValue' => 0)); ?>
						<?php echo CHtml::label('Enable Temporary Receipt', 'AgencySetting_EnableTemporaryReceipt'); ?>
					</div>
				</td>
			</tr>
			<tr>
				<td>
					<div class="form-column">
						<?php echo CHtml::label('Default Receipt Print', 'AgencySetting_defaultReceiptPrint'); ?>
						<?php echo CHtml::dropDownList('AgencySetting[defaultReceiptPrint]', $agency->getSetting('defaultReceiptPrint'), array('OfficialReceipt' => 'Official Receipt', 'TemporaryReceipt' => 'Temporary Receipt'), array('prompt' => '')); ?>
					</div>
				</td>
			</tr>
			<tr>
				<td>
					<?php echo GxHtml::submitButton('Save', array('name' => 'submit', 'class' => 'no-margin')); ?>
				</td>
			</tr>
		</table>
	</div>
	<?php echo CHtml::endForm(); ?>
</div>